package com.mycode.service;

import com.mycode.domain.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

/**
 * @author Zengsh123
 * @date 2020-03-17 15:23.
 */
@FeignClient(value = "seata-account-service")
public interface AccountService {
    @PostMapping(value = "account/decrease")
    ResponseResult<Integer> decrease(@RequestParam("userId") Long userId,
                            @RequestParam("money") BigDecimal money);
}
